<template>
  <div id='basicLayout'>
    <a-layout style='min-height: 100vh'>
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>

      <a-layout-content className='content'>
        <!-- Vue Router 的路由出口，根据路由变化渲染不同页面组件 -->
        <router-view />
      </a-layout-content>

      <a-layout-footer className='footer'>
        <a href='https://www.codefather.cn' target='_blank'>
          编程导航 by 程序员鱼皮
        </a>
      </a-layout-footer>

    </a-layout>
  </div>
</template>

<script setup lang='ts'>
import GlobalHeader from '../components/GlobalHeader.vue'

</script>



<style scoped>
#basicLayout .footer {
  background: #efefef;
  padding: 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 28px;
  padding: 20px;
}
#basicLayout .header {
  padding-inline: 20px;
  margin-bottom: 16px;
  color: unset;
  background: white;
}

</style>

